﻿<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeBehind="CommonAdd.aspx.cs" Inherits="SZHL.UI.View.CommonAdd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <title></title>
    <link href="/CSS/bootstrap3.3.5/css/bootstrap.css" rel="stylesheet" type="text/css" />
    <script src="/Scripts/jquery-1.11.2.min.js" type="text/javascript"></script>
    <!--[if IE]>
        <script src="../../Scripts/HTML5.js"></script>
    <![endif]-->
    <style type="text/css">
        .szhl_Upload {
            display: none;
        }
    </style>
</head>
<body>
    <form id="addForm" runat="server">

        <div class="container-fluid maindiv" style="margin: 20px 20px 50px 20px">
            <div class="row" style="margin-bottom:50px">
                <div class="col-xs-12" >
                    <!-- Only required for left/right tabs -->

                    <!--startprint-->

                    <asp:PlaceHolder runat="server" ID="UserControl" />

                    <!--endprint-->


                </div>
            </div>
            <table class="table navbar-fixed-bottom" style="background-color: whitesmoke;">
                <tbody>
                    <tr>
                        <td class="text-center">
                            <asp:Button Text="保 存" ID="btSendForm" runat="server" Width="180px" CssClass="btn btn-success btn-large" OnClientClick=" if(!CheckData()){return false;}" OnClick="btSendForm_Click" />
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>


        <input type="hidden" id="hidFormCode" runat="server" value="" />
        <input type="hidden" runat="server" id="hidFormID" value="" />
        <script src="/CSS/bootstrap3.3.5/js/bootstrap.js" type="text/javascript"></script>
        <script type="text/javascript" src="/JqueryPlug/layer/layer/layer.js"></script>
        <script src="/Scripts/SZHLCommon.js?jsver=5" type="text/javascript"></script>
        <script>
            $(document).ready(function () {
                ComFunJS.initForm();
            });
            function CheckData() {
                if (typeof (getdata) === "function") {
                    getdata();
                }
                if (checkform()) {
                    return false;
                } else if (confirm('你确定要保存吗？')) {
                    return true;
                }
                else {
                    return false;
                }
            }
            function checkform() {
                $(".szhl_require").trigger('blur');
                var numError = $('.errmsg').length;
                if (numError) {
                    return true;
                } else {
                    return false
                }
            }
        </script>
    </form>
</body>
</html>
